<?php
$bodyParams = $route->bodyParams;

$SQL = "select COLUMN_NAME,DATA_TYPE,COLUMN_COMMENT from information_schema.columns where table_name='".$bodyParams['tableName']."' and table_schema='".$bodyParams['dbName']."'";

$roleData = $db->mysqlDB->query($SQL);

$response->responseData(true,$roleData);